<?php
namespace Admin\Model;
use Think\Model;
class BannersModel extends Model{
    protected $_validate = array(
        array('image','require','图片不能为空！'), //默认情况下用正则进行验证
    );
}